/**
 * 零基础学C语言
 * 
 * version: 1st
 * author: 明日科技
 * see: http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    int grade[10] = {95, 85, 45, 78, 68, 91, 90, 55, 48, 80};
    int total = 0;
    float avg;

    for(int i = 0; i < 10; i++) {
        total += grade[i];
    }

    avg = (float) total / 10;
    printf("the student's average score is %.2f\n", avg);

    return 0;
}

/*
output:
the student's average score is 73.50
*/